home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / include / Xm / CutPaste.h.z / CutPaste.h
Encoding:
C/C++ Source or Header  |  2003-11-18  |  7.3 KB  |  217 lines

  1. /*
  2.  * CutPaste.h
  3.  *
  4.  * Copyright 2000, Silicon Graphics, Inc.
  5.  * ALL RIGHTS RESERVED
  6.  * 
  7.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  8.  * States.   Use of a copyright notice is precautionary only and does not
  9.  * imply publication or disclosure.
  10.  *
  11.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  12.  * Use, duplication or disclosure by the Government is subject to restrictions
  13.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  14.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  15.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  16.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  17.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  18.  *
  19.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  20.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  21.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  22.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  23.  * GRAPHICS, INC.
  24.  */
  25. /* 
  26.  * @OSF_COPYRIGHT@
  27.  * (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
  28.  * ALL RIGHTS RESERVED
  29.  *  
  30. */ 
  31. /*
  32.  * HISTORY
  33.  * Motif Release 1.2.5
  34. */
  35. /*   $XConsortium: CutPaste.h /main/cde1_maint/2 1995/08/18 18:54:54 drk $ */
  36. /*
  37. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  38. /*
  39. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  40. #ifndef _XmCutPaste_h
  41. #define _XmCutPaste_h
  42.  
  43. #include <Xm/Xm.h>
  44.  
  45. #ifdef __cplusplus
  46. extern "C" {
  47. #endif
  48.  
  49. /* XmClipboard return status definitions */
  50.  
  51. #define XmClipboardFail         0
  52. #define XmClipboardSuccess      1
  53. #define XmClipboardTruncate     2
  54. #define XmClipboardLocked       4
  55. #define XmClipboardBadFormat    5
  56. #define XmClipboardNoData       6
  57.  
  58. /* XmClipboard pre-1.2 definitions */
  59.  
  60. #define ClipboardFail         0
  61. #define ClipboardSuccess      1 
  62. #define ClipboardTruncate     2
  63. #define ClipboardLocked       4
  64. #define ClipboardBadFormat       5
  65. #define ClipboardNoData       6
  66.  
  67. typedef struct {
  68.     long DataId;
  69.     long PrivateId;
  70. } XmClipboardPendingRec, *XmClipboardPendingList;
  71.  
  72. #ifdef _NO_PROTO
  73. typedef void (*XmCutPasteProc)() ;
  74. typedef void (*VoidProc)() ;
  75. #else
  76. typedef void (*XmCutPasteProc)( Widget w, long * data_id, long * private_id,
  77.                                     int * reason) ;
  78. typedef void (*VoidProc)( Widget w, int * data_id, int * private_id,
  79.                                     int * reason) ;
  80. #endif
  81.  
  82.  
  83. /********    Public Function Declarations    ********/
  84. #ifdef _NO_PROTO
  85.  
  86. extern int XmClipboardBeginCopy() ;
  87. extern int XmClipboardStartCopy() ;
  88. extern int XmClipboardCopy() ;
  89. extern int XmClipboardEndCopy() ;
  90. extern int XmClipboardCancelCopy() ;
  91. extern int XmClipboardWithdrawFormat() ;
  92. extern int XmClipboardCopyByName() ;
  93. extern int XmClipboardUndoCopy() ;
  94. extern int XmClipboardLock() ;
  95. extern int XmClipboardUnlock() ;
  96. extern int XmClipboardStartRetrieve() ;
  97. extern int XmClipboardEndRetrieve() ;
  98. extern int XmClipboardRetrieve() ;
  99. extern int XmClipboardInquireCount() ;
  100. extern int XmClipboardInquireFormat() ;
  101. extern int XmClipboardInquireLength() ;
  102. extern int XmClipboardInquirePendingItems() ;
  103. extern int XmClipboardRegisterFormat() ;
  104.  
  105. #else
  106.  
  107. extern int XmClipboardBeginCopy( 
  108.                         Display *display,
  109.                         Window window,
  110.                         XmString label,
  111.                         Widget widget,
  112.                         VoidProc callback,
  113.                         long *itemid) ;
  114. extern int XmClipboardStartCopy( 
  115.                         Display *display,
  116.                         Window window,
  117.                         XmString label,
  118.                         Time timestamp,
  119.                         Widget widget,
  120.                         XmCutPasteProc callback,
  121.                         long *itemid) ;
  122. extern int XmClipboardCopy( 
  123.                         Display *display,
  124.                         Window window,
  125.                         long itemid,
  126.                         char *format,
  127.                         XtPointer buffer,
  128.                         unsigned long length,
  129.                         long private_id,
  130.                         long *dataid) ;
  131. extern int XmClipboardEndCopy( 
  132.                         Display *display,
  133.                         Window window,
  134.                         long itemid) ;
  135. extern int XmClipboardCancelCopy( 
  136.                         Display *display,
  137.                         Window window,
  138.                         long itemid) ;
  139. extern int XmClipboardWithdrawFormat( 
  140.                         Display *display,
  141.                         Window window,
  142.                         long data) ;
  143. extern int XmClipboardCopyByName( 
  144.                         Display *display,
  145.                         Window window,
  146.                         long data,
  147.                         XtPointer buffer,
  148.                         unsigned long length,
  149.                         long private_id) ;
  150. extern int XmClipboardUndoCopy( 
  151.                         Display *display,
  152.                         Window window) ;
  153. extern int XmClipboardLock( 
  154.                         Display *display,
  155.                         Window window) ;
  156. extern int XmClipboardUnlock( 
  157.                         Display *display,
  158.                         Window window,
  159. #if NeedWidePrototypes
  160.                         int all_levels) ;
  161. #else
  162.                         Boolean all_levels) ;
  163. #endif /* NeedWidePrototypes */
  164. extern int XmClipboardStartRetrieve( 
  165.                         Display *display,
  166.                         Window window,
  167.                         Time timestamp) ;
  168. extern int XmClipboardEndRetrieve( 
  169.                         Display *display,
  170.                         Window window) ;
  171. extern int XmClipboardRetrieve( 
  172.                         Display *display,
  173.                         Window window,
  174.                         char *format,
  175.                         XtPointer buffer,
  176.                         unsigned long length,
  177.                         unsigned long *outlength,
  178.                         long *private_id) ;
  179. extern int XmClipboardInquireCount( 
  180.                         Display *display,
  181.                         Window window,
  182.                         int *count,
  183.                         unsigned long *maxlength) ;
  184. extern int XmClipboardInquireFormat( 
  185.                         Display *display,
  186.                         Window window,
  187.                         int n,
  188.                         XtPointer buffer,
  189.                         unsigned long bufferlength,
  190.                         unsigned long *outlength) ;
  191. extern int XmClipboardInquireLength( 
  192.                         Display *display,
  193.                         Window window,
  194.                         char *format,
  195.                         unsigned long *length) ;
  196. extern int XmClipboardInquirePendingItems( 
  197.                         Display *display,
  198.                         Window window,
  199.                         char *format,
  200.                         XmClipboardPendingList *list,
  201.                         unsigned long *count) ;
  202. extern int XmClipboardRegisterFormat( 
  203.                         Display *display,
  204.                         char *format_name,
  205.                         int format_length) ;
  206.  
  207. #endif /* _NO_PROTO */
  208. /********    End Public Function Declarations    ********/
  209.  
  210.  
  211. #if defined(__cplusplus) || defined(c_plusplus)
  212. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  213. #endif
  214.  
  215. #endif /* _XmCutPaste_h */
  216. /* DON'T ADD ANYTHING AFTER THIS #endif */
  217.